import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: bilesja
 * Date: 4/25/11
 * Time: 1:06 PM
 * To change this template use File | Settings | File Templates.
 */
public class Coordinates {
    int pos_x;
    int pos_y;

    Coordinates(int x, int y){
        this.pos_x = x;
        this.pos_y = y;
    }

    public double calculateDistance(int other_x, int other_y){
        return Math.sqrt(Math.pow((other_x-pos_x),2)+Math.pow(other_y - pos_y,2));
    }

    public String printCoordinates (){
       return "x: " + pos_x/100 + ", y: " + pos_y/100;
    }



}
